Skip to content

Git rework#11

Merged
Caylies merged 3 commits intoCaylies:devfrom
dormieriancitizen:git-rework
Nov 18, 2025
Merged

Git rework#11
Caylies merged 3 commits intoCaylies:devfrom
dormieriancitizen:git-rework

Conversation

@dormieriancitizen
Copy link
Contributor

Rework installer to use git rather than zip clones.

By using native git, we get a couple benefits:

  • installation is around the same speed but should ratelimit basically never
  • updating is way faster because it only downloads the changes, rather than the whole zip again
  • no need to unzip, git handles that for us

In the future, we might consider

  • symlinking instead of copying—it's just difficult to do that because of the exclude section
  • allowing hosts other than github—we'd just have to adjust the fetch_pyproject to work with other git hosts.

Also, fixes a couple type hints

@dormieriancitizen
Copy link
Contributor Author

If this gets merged, commands to manage the cache folder should also be added at some point. It's not strictly necessary, since the user can delete the cache whenever they want with no adverse effects, and packages are pretty small, but it would be nice.

The cache folder is just the git repo holding each package—keeping it there makes updates faster since then we can git pull instead of cloning every time.

@Caylies Caylies merged commit 91b2f2a into Caylies:dev Nov 18, 2025
2 checks passed
@Caylies
Copy link
Owner

Caylies commented Nov 18, 2025

Thanks!

@Caylies Caylies mentioned this pull request Dec 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants